package com.swu.po;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 住院信息表
 * </p>
 *
 * @author 勾新杰
 * @since 2025-06-08
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("admission_info")
@Schema(description="住院信息表")
public class AdmissionInfo implements Serializable {

    private static final long serialVersionUID = 1L;

    @Schema(description = "住院标识")
    @TableId(value = "admission_id", type = IdType.AUTO)
    private Integer admissionId;

    @Schema(description = "病案号")
    private String medicalRecordId;

    @Schema(description = "第几次住院")
    private Integer admissionCount;

    @Schema(description = "医疗付费方式：1.城镇职工基本医疗保险 2.城镇居民基本医疗保险 3.新型农村合作医疗 4.贫困求助 5.商业医疗保险 6.全公费 7.全自费 8.其他社区保险 9.其他")
    private Integer paymentMethod;

    @Schema(description = "入院途径：1.急诊 2.门诊 3.其他医疗机构转入 9.其他")
    private Integer admissionPath;

    @Schema(description = "入院时间")
    private LocalDateTime admissionTime;

    @Schema(description = "入院科别")
    private String admissionDept;

    @Schema(description = "病房")
    private String ward;

    @Schema(description = "转科科别")
    private String transferDept;

    @Schema(description = "出院时间")
    private LocalDateTime dischargeTime;

    @Schema(description = "出院科别")
    private String dischargeDept;

    @Schema(description = "实际住院天数")
    private Integer actualDays;

    @Schema(description = "门(急)诊诊断")
    private String erDiagnosis;

    @Schema(description = "门(急)诊疾病编码")
    private String erDiagCode;


}
